﻿package stuff3D.meshes
{
	public class Triangle
	{
		public var indices:Vector.<int>;
		public var uvdata:Vector.<int>;
		public function Triangle( idx1:int, idx2:int, idx3:int, idxuv1:int=0, idxuv2:int=0, idxuv3:int=0 ):void 
		{
			indices = new Vector.<int>(3, true);
			indices[ 0 ] = idx1;
			indices[ 1 ] = idx2;
			indices[ 2 ] = idx3;
			uvdata = new Vector.<int>(3, true);
			uvdata[ 0 ] = idxuv1;
			uvdata[ 1 ] = idxuv2;
			uvdata[ 2 ] = idxuv3;			
		}
	}
}